﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ECGWeb.Controls
{
    public partial class PatientInfomation : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public void setData(ECGService.Patient patient)
        {
            this.lbPatientName.Text = patient.patientName;
            this.lbPatientID.Text = patient.patientID;
            this.lbBirthDay.Text = patient.dateOfBirth.ToString("dd/MM/yyyy");
            this.lbSex.Text = patient.sex ? "Nam" : "Nữ";
        }
    }
}